package com.yc.exam.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 角色
 *
 * @author 王妍
 * @since 2022-02-20
 */
@Getter
@Setter
@TableName("role")
@ApiModel(value = "Role对象", description = "角色")
public class Role implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty("主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("名字")
  @TableField("name")
  private String name;

  @ApiModelProperty("角色key")
  @TableField("role_key")
  private String roleKey;

  @ApiModelProperty("创建时间")
  @TableField(value = "create_time", fill = FieldFill.INSERT)
  private Date createTime;

  @ApiModelProperty("更新时间")
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Date updateTime;
}
